#!/bin/bash

# 构建项目
echo "Building the project..."
npm run build

# 上传到服务器
echo "Uploading to the server..."
rsync -avz --delete dist/ root@123.57.29.73:/home/user/static-content/back

echo "Deployment completed successfully!"
